<?php
 /* compiled by (WeePHP) at (2014-08-14 13:59:08) */

 if($this->data['localList']){?>
<table width="98%" border="0" cellspacing="1" bgcolor="#ffffff" id="attach-list">
<?php foreach($this->data['localList'] as $this->data['val']){?>
  <tr bgcolor="#FFFFFF" id="attach-list-li-<?php echo $this->data['val']['id'];?>" style="border-bottom:1px solid #CCC">
    <td width="60"><a href="<?php echo $this->data['val']['url'];?>" target="_blank"><img src="<?php echo $this->data['val']['thumb_url'];?>" border="0" class="thumb" title="<?php echo $this->data['val']['name'];?>"></a></td>
    <td width="500">
    <em style="width:500px; overflow:hidden; display:block"><?php echo $this->data['val']['file'];?></em>
    <textarea name="attach_remark[<?php echo $this->data['val']['id'];?>]" class="attach-list-text"><?php echo $this->data['val']['remark'];?></textarea></td>
    <td>
    <a href="javascript:void(0)" onclick="delAttach(<?php echo $this->data['val']['id'];?>)" title="删除这个附件">删除</a>&nbsp;
    
    <?php if(1==$this->data['val']['status']){?>
    <a href="javascript:void(0)" onclick="setStatus(<?php echo $this->data['val']['id'];?>, 0)" title="点击隐藏该图片">显示</a>
    <?php } else{?>
    <a class="red" href="javascript:void(0)" onclick="setStatus(<?php echo $this->data['val']['id'];?>, 1)" title="点击显示该图片">隐藏</a>
    <?php }
?>
    &nbsp;
    <a href="javascript:void(0)" onclick="setCover(<?php echo $this->data['val']['id'];?>, '<?php echo $this->data['val']['file'];?>')" title="设置成封面">设为封面</a>
    <span style="display:none" class="cover_tag" id="cover_tag_<?php echo $this->data['val']['id'];?>"><img src="images/admin/cover.gif" align="absmiddle" /></span>
    </td>
  </tr>
 <?php }
?>
</table>
<?php } else{?> 
还没有任何图片
<?php }
?>
